package com.example.schoolenterprisealliance.method;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.example.schoolenterprisealliance.MainActivity;
import com.example.schoolenterprisealliance.R;
import com.example.schoolenterprisealliance.activity.DynamicActivity;
import com.example.schoolenterprisealliance.activity.InternetActivity;
import com.example.schoolenterprisealliance.activity.IntroduceActivity;
import com.example.schoolenterprisealliance.activity.PolicyActivity;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Skip  {
    private Context context;
    private String activity;
    private Intent intent;
    public Skip(Context context, String activity) {
        this.context = context;
        this.activity = activity;
    }
    public Intent intent(){
        switch (activity){
            case "首页":
                intent =new Intent(context,MainActivity.class);
                break;
            case "联盟介绍":
                intent =new Intent(context,IntroduceActivity.class);
                break;
            case "最新动态":
                intent=new Intent(context, DynamicActivity.class);
                break;
            case "最新政策":
                intent=new Intent(context, PolicyActivity.class);
                break;
            case "互联网+":
                intent=new Intent(context, InternetActivity.class);
                break;
        }
        return intent;
    }
}
